﻿namespace IceCS.DesignPattern.Core.CommandPattern.StockMarket
{
    public class OrderBuyStock : IOrder
    {
        private readonly Stock _stock;
        public OrderBuyStock(Stock stock)
        {
            _stock = stock;
        }

        /// <inheritdoc cref="IOrder.Execute"/>
        public void Execute()
        {
            _stock.Buy();
        }
    }
}
